#include <iostream>
#include <string>
using namespace std;

class Human
{
private:
    int age;
    string name;
public:
    Human(string inputName, int inputAge)
    {
        name = inputName;
        age = inputAge;
    }
    friend void DisplayName(const Human& obj);
};

int main(int argc, char const *argv[])
{
    /* code */
    Human person1("zhangsan", 18);
    DisplayName(person1);

    return 0;
}

void DisplayName(const Human& obj)
{
    cout << obj.name << endl;
}


